package com.molichuxing.services.infrastructure.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.convertor.Convert;
import com.molichuxing.services.infrastructure.dao.DeviceUnionpayParamMapper;
import com.molichuxing.services.infrastructure.dto.response.DeviceUnionpayParamDto;
import com.molichuxing.services.infrastructure.service.DeviceUnionpayParamService;

@Service("deviceUnionpayParamService")
public class DeviceUnionpayParamServiceImpl implements DeviceUnionpayParamService {

	@Resource
	private DeviceUnionpayParamMapper deviceUnionpayParamMapper;

	/**
	 * 获取智能终端支付设备信息
	 * 
	 * @param cpu
	 *            终端cpu
	 * @return
	 */
	@Override
	public DeviceUnionpayParamDto getDeviceUnionpayParam(String cpu) {
		return Convert.toDeviceUnionpayParamDto(deviceUnionpayParamMapper.getByCpu(cpu));
	}

}
